baishuihu-mongo[all].yaml 725 B

1234567891011121314151617181920212223
  1. scheduler:
  2. # run every day at 6:00 and 18:00 UTC
  3. cron: "0 17 */1 * *"
  4. # number of backups to keep locally
  5. retention: 14
  6. # backup operation timeout in minutes
  7. timeout: 60
  8. target:
  9. # mongod IP or host name
  10. host: "baishuihu-mongo"
  11. # mongodb port
  12. port: 27017
  13. # mongodb database name, leave blank to backup all databases
  14. database: ""
  15. # leave blank if auth is not enabled
  16. username: "root"
  17. password: "baishuihu_vxxx"
  18. # add custom params to mongodump (eg. Auth or SSL support), leave blank if not needed
  19. params: "--authenticationDatabase admin"
  20. # params: "--ssl --authenticationDatabase admin"
  21. # 对应数据库配置
  22. # mongodb://root:baishuihu_vxxx@baishuihu-mongo:27017/user?authSource=admin